using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.Utility;

public partial class email : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.fromUser.Text = "wojiushi_007@hotmail.com";
        this.fromUserName.Text = "lifeng";
        this.toUser.Text = "lifeng.yang@ogilvy.com";
        this.toUserName.Text = "yang";
        this.subjectNm.Text = "This is a test mail";
        this.bodyAll.Text = "UUUUUUUUUUUUU";
        this.credentialEmail.Text = "Credential Email";
        this.credentialName.Text = "Credential Name";
        this.strSMTP.Text = "SMTP";
    }
    protected void butSend_Click(object sender, EventArgs e)

    {
        SendMail.SendMails_test(this.fromUser.Text, this.fromUserName.Text, this.toUser.Text, this.toUserName.Text, this.subjectNm.Text, this.bodyAll.Text, this.credentialEmail.Text, this.credentialName.Text, this.strSMTP.Text);

    }
}
